package com.niiwoo.activity.stage.enums.prize;

import java.util.NoSuchElementException;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum SendPrizeDetailProjectTypeEnum {

	NORMAL((byte) 1, "普通标"), CREDITOR((byte) 2, "债权标"), INTELLIGENCE((byte) 3, "智能投"),;
	
	private Byte projectType;
	
	private String desc;

	public static SendPrizeDetailProjectTypeEnum enumOf(byte projectType) {
		for (SendPrizeDetailProjectTypeEnum projectTypeEnum : values()) {
			if (projectTypeEnum.projectType.equals(projectType)) {
				return projectTypeEnum;
			}
		}
		throw new NoSuchElementException("SendPrizeDetailProjectTypeEnum:" + projectType);
	}
}